package io.github.tangwan.jdk8;

import cn.hutool.json.JSONUtil;

/**
 * @author tangwan
 * @version V1.0
 * created on 2021/8/20 10:41
 * @since JDK 1.8
 */
public class TransientTest {

    public static void main(String[] args) {
        User user = new User();
        user.setAge(18);
        user.setName("张三");
        user.setSex(1);
        System.out.println(JSONUtil.toJsonStr(user));
    }


}
